<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="../connections/connect.asp" -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
	<%
		var user = Session("user")
		var pass = Request.Form("pass")
		var newpass = Request.Form("newPass")
		var answer = Request.Form("answer")
		var phone = Request.Form("phone")
		var address = Request.Form("Address")
		
		if(newpass ==null || newpass=="" )
		{
			var sql = "Update Customer Set Phone = '"+phone+"', Answer = '"+answer+"', Address='"+address+"' Where CustomerID = '"+user+"'"
			var list = conn.Execute(sql)
			Response.Redirect("../logout.asp")
		}
		else if (newpass != null)
		{
var sql = "Update Customer Set Phone = '"+phone+"', Answer = '"+answer+"', Password='"+newpass+"',Address='"+address+"' Where CustomerID = '"+user+"'"	
			var list = conn.Execute(sql)
			Response.Redirect("../logout.asp")
		}		
	%>

</body>
</html>
